// 项目的JS入口文件
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import moment from 'moment'

import VueResource from 'vue-resource'

Vue.filter('dataFormat',function(dataStr,pattern='YYYY-MM-DD HH:mm:ss'){
 return moment(dataStr).format(pattern)

})

Vue.use(VueResource)
// 设置请求的根路径
Vue.http.options.root = 'http://www.liulongbin.top:3005';
// http://www.liulongbin.top:3005
Vue.http.options.emulateJSON = true;

import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

// import { Header,Swipe, SwipeItem,Button,Lazyload } from 'mint-ui';

// Vue.use(Lazyload);
// Vue.component(Header.name, Header); 
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

// 安装图片预览插件
import VuePreview from 'vue-preview'
Vue.use(VuePreview)



import router from './router.js'
import app from './App.vue'



var vm = new Vue({
  el: '#app',
  render: c => c(app),
  router
})
